<?php $this->load->view('common/dpc-head');?>
<?php $this->load->view('common/dpc-header');?>
<h1 id="top-deals-title" class="text-center" style="color:#F45435;text-shadow:2px 2px 2px #51245F;font-weight:400;">Top Deals</h1>
<?php $this->load->view('common/dpc-top-search');?>
<div role="main">
	<div class="browse-a-z">
                <h2>Browse Stores By Alphabet</h2>
                <ul>
                        <li><a href="/all-promo-codes/0-9">0-9</a></li>
                                    <?php for($a=65;$a<=90;$a++){ ?>
                                        <li><a href="/all-promo-codes/<?php echo chr($a);?>"><?php echo chr($a);?></a></li>
                                        <?php }?>
                </ul>
                <div style="clear:both;"></div>
            </div>
            <div style="clear:both;"></div>            
            <div class="stripe-regular">
              <div class="row">
              
                <div id="top-deals" class="large-9 columns">
                  <div class="row">
                      <div class="large-8 columns">
                        <h2>Top Deals <span>- <?php echo $count=count($topDealsArray); ?> result<?php if($count>1){ ?>s<?php } ?></span></h2>
                      </div>
                    </div>
                  <article class="blog-post-content">
                    <?php foreach($topDealsArray as $temp){ ?>
                    <section class="article-main-content">
                    
                      <div class="wrapper-3 primary">
                        <div class="row">
                          <div class="column">
                            <heading>
                              <figure>
                                <img src="<?php echo $temp['deal_banner']; ?>" alt="<?php echo $temp['deal_name']; ?>" style="border-radius:4px;box-shadow:0 0 2px #A049BB;">
                              </figure>
                              <h2 class="alt"><?php echo $temp['deal_name']; ?></h2>
                              <p class="rr subtitle">
                                posted on <a><?php echo $temp['deal_startdate']; ?></a> by <?php echo $temp['deal_posted_by']; ?>
                              </p>
                            </heading>
                              
                            <div id="top-deals-content" class="text-content">
                            <?php echo $temp['deal_description']; ?>
                            </div>
                            
                            <a class="input button dark secondary responsive fixed share-button right" href="/deals.php/<?php echo $temp['deal_id']; ?>/<?php echo $temp['deal_store_id']; ?>" target="_blank" rel="nofollow">Get It</a>
                          </div>
                        </div>
                      </div>
                      
                      <!-- <ul class="rr tags">
                        <li>
                          <span>Tags:</span>
                        </li>
                        <li><a href="post.html#">business</a></li>
                        <li><a href="post.html#">technology</a></li>
                        <li><a href="post.html#">experience</a></li>
                        <li><a href="post.html#">information</a></li>
                        <li><a href="post.html#">news</a></li>
                      </ul>-->
                      
                    </section>
                    <div style="margin-top:15px;"></div>
                    <?php } ?>
                    
                    <div style="margin-top:15px;"></div>
                    
                  </article>
                  
                </div>
                
                <aside class="large-3 columns main-sidebar bg" style="margin-top:34px;">
                  <?php if(isset($bannersArray) && !empty($bannersArray)){?>
                  <div id="banner" class="video-box small" style="margin:0px 0 10px 0;">
                    <a href="<?php echo $bannersArray[0]['banner_link'];?>" target="_blank" rel="nofollow"><img src="<?php echo $bannersArray[0]['banner_image'];?>" alt="<?php echo $bannersArray[0]['banner_alt'];?>" border="0" /></a>
                  </div>
                  <?php }?>
                  
                  <div class="testimonials-box flexslider" style="margin:0;">
                    <ul class="rr">
                      <li>
                        <div class="testimonial">
                          <div class="wrapper-5" id="catTag">
                          	<h3>Related Categories</h3>
                          	<ul id="related-categories">
                          	<?php foreach($relatedCat as $other){?>
                          		<li>
                          			<a href="/<?php echo $other['parent_url'].'/'.$other['category_url'];?>"><?php echo $other['category_name'];?></a>
                          		</li>
                          	<?php }?>
                          	<div style="clear: both;"></div>
                          	</ul>
                          </div>
                        </div>
                      </li>
                    </ul>
                  </div>
                
                </aside>
              </div>
            </div>
            
          </div>
<?php $this->load->view('common/dpc-footer');?>
